#ifndef __USR_LED_H
#define __USR_LED_H
//#include "main.h"

typedef enum
{
    //错误
    MODE_ERROR = 0,
    // 初始化
    MODE_INIT,
    // 数据交互
    MODE_DATA,
    // 睡眠
    MODE_SLEEP
} WORK_LED_MODE_M;

typedef enum
{
    STATE_OPEN = 0,
    STATE_CLOSE
} WORK_LED_STATE_M;

typedef struct
{
    WORK_LED_MODE_M mode;
    WORK_LED_STATE_M status;
    uint8_t count;
    luat_rtos_mutex_t mutex;
} WORK_LED_CTRL_T;

#define GNSS_LED 0
#define GSM_LED 1

void work_led_mode_switch(WORK_LED_CTRL_T *led, WORK_LED_MODE_M staus);
void deisplay(WORK_LED_MODE_M mode,uint8_t data_mode);
void data_mode_count_add(WORK_LED_CTRL_T *led);

void work_led_init(void);


#endif /* __USR_LED_H */
